Next | Prev | Up | Top | Contents | Index

Removing Symbol Table and Relocation Bits with strip

The strip tool removes symbol table and relocation bits that are attached to the assembler and loader. Use strip to save space after you debug a program. The effect of strip is the same as that of using the -s option to ld.


strip Syntax

The syntax for strip is:

strip options filename1 [filename2...filenamen]

options

One or more of the options listed in Table 2-11.

filename

Specifies the name of one or more object files whose contents are to be stripped.
For more information, see the strip(1) reference page.

strip Options
OptionDescription
-lStrips line number information, and keeps the symbol table and debugging information.
-o filenamePuts the stripped information in the filename that you specify.
-VPrints the version number of strip.
-xKeeps symbol table information, but may strip debugging and line number information.


Next | Prev | Up | Top | Contents | Index